inspector: Avoid crash when canceling at startup
authorDaiki Ueno <dueno@src.gnome.org>
Tue, 22 Dec 2015 02:21:56 +0000 (11:21 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 22 Dec 2015 03:52:27 +0000 (12:52 +0900)
commit75b3eec7a6549f0c2cf56d5b831c83aa939de3c7
treed5f00b2d94af66e8e0c5ca89b831f2c2082ec4c5
parentcc50652db52d7b8ef8119592da6245978f9a0f31
inspector: Avoid crash when canceling at startup

When clicking "Cancel" on the "Do you want to use GTK+ Inspector?"
dialog, unregister the update_debugging idle handler.  Also, steal
reference to 'inspector_window' while gtk_destroy_widget(), to make
further gtk_window_update_debugging() calls as a no-op.

https://bugzilla.gnome.org/show_bug.cgi?id=759764
gtk/gtkwindow.c